package movee.spring.app.template.domain.api;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * API相关顶层异常类
 *
 * @author movee
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class ApiException extends RuntimeException {

    private ApiStatusCode apiStatusCode;

    public ApiException(ApiStatusCode apiStatusCode, final String msg) {
        super(msg);
        this.apiStatusCode = apiStatusCode;
    }

}
